import os

class Parameter:
    FLIP_SCALE=0.5
    NUM_CLASSES=5

    BATCH_SIZE=16
    LEARNING_RATE = 0.00001
    NUM_EPOCHS = 50
    MOMENTUM = 0.9

    N_SAVE_INTERVAL=1

def create_symlink(source, link_name):
    source=os.path.abspath(source)
    # 检查软链接是否存在
    if os.path.islink(link_name):
        # 删除已存在的软链接
        os.remove(link_name)
    # 创建软链接
    os.symlink(source, link_name)
